from pypinyin import pinyin,Style

a = ''.join([p[0][0].upper() for p in pinyin("你",style=Style.FIRST_LETTER)])
print(a)

a = pinyin("你",style=Style.FIRST_LETTER)
print(a)

a = pinyin("你")[0][0][0]
print(a)